package com.jml.AOP004;


import com.jml.AOP004.config.MyConfig;
import com.jml.AOP004.service.OrderService;
import org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author:jml
 * @date: 2019/9/24 14:45
 * @description：
 */
public class TestApp {
	
	public static void main(String[] args) throws Exception {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(
				MyConfig.class);
		
		AnnotationAwareAspectJAutoProxyCreator a = null;
		
		OrderService orderService = applicationContext.getBean("orderService", OrderService.class);
		String s = orderService.addOrder();
		System.out.println(s);
	}
}
